﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BookEntryModule.ascx.cs"
    Inherits="ChapterX.Modules.BookEntryModule" %>

<link type="text/css" rel="Stylesheet" href="/css/entry.css" />
<script type="text/javascript" src="/js/entry.js"></script>

<div class="form-wrapper ui-widget ui-widget-content ui-corner-all">
    <div class="form-header ui-widget-header ui-corner-all">
        <span>教材信息</span>
    </div>
    <asp:HiddenField ID="Field_BookId" runat="server" />
    <div class="form-content">
        <table border="0" cellpadding="0" cellspacing="0" class="entry">
            <tbody>
            <tr>
                <td>*&nbsp;题名：</td>
                <td><asp:TextBox ID="Field_Title" runat="server" MaxLength="256"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator ID="Validator_Title" runat="server" ControlToValidate="Field_Title" ErrorMessage="请填写题名" Display="Dynamic"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>*&nbsp;作者/编者：</td>
                <td><asp:TextBox ID="Field_AuthorEditor" runat="server" MaxLength="128"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator ID="Validator_AuthorEditor" runat="server" ControlToValidate="Field_AuthorEditor" ErrorMessage="请填写作者/编者" Display="Dynamic"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>ISBN：</td>
                <td><asp:TextBox ID="Field_ISBN" runat="server" MaxLength="10"></asp:TextBox></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>出版社：</td>
                <td><asp:TextBox ID="Field_Publisher" runat="server" MaxLength="128"></asp:TextBox></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>出版地：</td>
                <td><asp:TextBox ID="Field_PubPlace" runat="server" MaxLength="128"></asp:TextBox></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>出版年：</td>
                <td><asp:TextBox ID="Field_PubYear" runat="server" MaxLength="4"></asp:TextBox></td>
                <td><asp:CustomValidator ID="Validator_PubYear" runat="server" ControlToValidate="Field_PubYear" ValidateEmptyText="false" ClientValidationFunction="checkyear" ErrorMessage="请填写有效的出版年" Display="Dynamic"></asp:CustomValidator></td>
            </tr>
            <tr>
                <td>版本：</td>
                <td><asp:TextBox ID="Field_Edition" runat="server" MaxLength="32"></asp:TextBox></td>
                <td>&nbsp;</td>
            </tr>
            <tr id="Row_TeacherId" runat="server">
                <td>*&nbsp;教师ID：</td>
                <td><asp:TextBox ID="Field_TeacherId" runat="server" MaxLength="64"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator ID="Validator_TeacherId" runat="server" ControlToValidate="Field_TeacherId" ErrorMessage="请填写教师ID" Display="Dynamic"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>
                    <asp:Button ID="Submit" runat="server" CssClass="form-button" Text="保存" OnClick="Submit_Click" />
                    <asp:Button ID="Delete" runat="server" CssClass="form-button" Text="删除" OnClick="Delete_Click" />
                </td>
                <td>&nbsp;</td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<div>
    <asp:DropDownList ID="UnboundCourseList" runat="server"></asp:DropDownList>
    <asp:Button ID="BindCourse" runat="server" CssClass="form-button" Text="绑定课程" 
        onclick="BindCourse_Click" />
</div>